﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SerialToConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            //SerialListener serListener = new SerialListener();
            SerialListener serListener = new SerialListener("COM3");
            serListener.start();
            Console.WriteLine("Serial post listener is started");

            string message = "";


            while (message != "x")
            {
               message =  Console.ReadLine();
               serListener.Write(message);
            }
        }
    }
}
